<%--<%@page import="com.lynn.salary.entity.AttendanceType"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String submitUrl = "";
	String inputValue = "";
	ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
	AttendanceType editType =(AttendanceType)vs.findValue("attendanceType");
	String flag = vs.findString("flag");
	if(flag!=null&&flag.equals("showEditPage")) {
		submitUrl = basePath + "attendanceType!edit.do?flag=update";
		
	} else {
		submitUrl = basePath + "attendanceType!save.do";
	
	}
%>
<div class="pageContent">
	<form method="post" action="<%=submitUrl%>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
	<div class="pageFormContent" layoutH="56">
			<p>
				<label>考勤项目：</label>
				<input name="attendanceType.name" class="required" type="text" size="30"  value="<s:property value='attendanceType.name' />" alt="请输入考勤项目名称"/ >
			</p>
			<p>
				<label>计算模式：</label>
		<s:select list="#{'--':'--','天':'天','小时':'小时'}"  listKey="key" listValue="value" name="attendanceType.calculateMode" value="attendanceType.calculateMode" ></s:select>

					
			</p>
			<p>
				<label>金额：</label>
				<input name="attendanceType.amount"  type="text" size="30"  value="<s:property value='attendanceType.amount'/>" / >
			</p>
			
		</div>
	
	
	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>	
	</form>
</div>

--%>